Api.ReadAxisSecondEncoder method
Reads the current position from an axis using the secondary encoder.
Namespace: IntervalZero.KINGSTAR.Local.Api
Assembly: IntervalZero.KINGSTAR.Local.Api (in IntervalZero.KINGSTAR.Local.dll) Version: 4.4.0.0
Syntax
public KsReturn<int> ReadAxisSecondEncoder(
int Index
)
Public Function ReadAxisSecondEncoder(
Index As Integer
) As KsReturn(Of Integer)
Parameters
Index
Type: int
The index of an axis. Indexes are zero based. Aliases affect this parameter.
Return value
Returns a KsError code and an integer value.
Remarks
Used in the cyclic callback to check the internal position of an axis.
NOTE: The internal position is available only if EnableSecondEncoder is enabled.
Usable EtherCAT states
ecatOP
Examples
N/A
See also